import createAxios from '/@/utils/axios'

export const controllerUrl = '/user/order.Order/'

// 确认订单
export function confirmOrder(data: anyObj) {
    return createAxios(
        {
            url: controllerUrl + 'confirmOrder',
            method: 'post',
            data: data,
        },
        {
            showSuccessMessage: true,
        }
    )
}

// 取消订单
export function cancelOrder(data: anyObj) {
    return createAxios(
        {
            url: controllerUrl + 'cancelOrder',
            method: 'post',
            data: data,
        },
        {
            showSuccessMessage: true,
        }
    )
}
